import request from '@/utils/request'

const api_name = '/admin/rolemenurelation'

export default {

  getRelation(roleId) {
    return request({
      url: `${api_name}/relation`,
      method: 'get',
      params: roleId
    })
  },

  doAssign(assginMenuVo) {
    return request({
      url: `${api_name}/assign`,
      method: "post",
      data: assginMenuVo
    })
  }
}